package com.newland.starpos.partner.http;

public enum SmsTemplate {
	
	// 注册
	REGISTER(1, "SMS_139226461"),
	// 重置登录密码
	PASSWORD_RESET(2, "SMS_139226462"),
	// 修改支付密码
	PAYMENT_PASSWORD_MODIFY(3, "SMS_139226462");
	
	private int type;
	
	private String smsTemplateCode;
	
	SmsTemplate(int type, String smsTemplateCode) {
		this.type = type;
		this.smsTemplateCode = smsTemplateCode;
	}

	public static String getSmsTemplateCode(int type) {
		for(SmsTemplate template : values()) {
			if(template.type == type) {
				return template.smsTemplateCode;
			}
		}
		return "";
	}
}
